import {createStore,combineReducers,applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
function RouteReducer(state={
  path:'/org/adduser'
},option){
  if(option.type == 'change_route'){
    return {
      ...state,
      path:option.path
    }
  }
  return {
    ...state
  }
}
let store = createStore(combineReducers({
  route:RouteReducer
}),applyMiddleware(thunk))
export default store